Using Rules in Object-Oriented Designs

نویسندگان

  • Daniel Dvorak
  • Anil Mishra
  • Johannes P. Ros
  • Anoop Singhal
  • Gary Weiss
  • Diane Litman
چکیده

System requirements often express some of the behavior of a domain model in the form of policies, constraints, invariants, and rules. Although an object-oriented approach helps with the design of this model, the implementation is often cluttered with details necessary to enforce the model's policies and constraints. As a result, the code is more prone to error and is more difficult to maintain since it tends to obscure the model’s fundamental structure. R++, a rule-based extension to C++, allows developers to express policies and constraints more clearly in the form of path-based rules. Since the rule evaluation mechanism is automatic, R++ rules enable developers to focus on what to do when a rule evaluates to TRUE, rather than on how and when these evaluations should be carried out. It is the absence of this mechanism in the source code, and the use of these rules in an object-oriented implementation that makes the code easier to maintain and makes for a clearer reflection of the underlying model. Category: Experience Report Contact: Anil Mishra, room 2C-053 AT&T Network & Computing Services 480 Red Hill Road Middletown, NJ 07748 email: [email protected] phone: (908) 615-4552 fax: (908) 615-5579

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Declarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey

One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...

متن کامل

R++: Adding Path-Based Rules to C++

Object-oriented languages and rule-based languages ooer two distinct and useful programming abstractions. However, previous attempts to integrate data-driven rules into object-oriented languages have typically achieved an uneasy union at best. R++ is a new, closer integration of the rule-based and object-oriented paradigms that extends C++ with a single programming construct, the path-based rul...

متن کامل

Object-Oriented Method for Automatic Extraction of Road from High Resolution Satellite Images

As the information carried in a high spatial resolution image is not represented by single pixels but by meaningful image objects, which include the association of multiple pixels and their mutual relations, the object based method has become one of the most commonly used strategies for the processing of high resolution imagery. This processing comprises two fundamental and critical steps towar...

متن کامل

R++: Using Rules in Object-Oriented Designs

System requirements often express some of the behavior of a domain model in the form of policies, constraints, invariants, and rules. Although an object-oriented approach helps with the design of this model, the implementation is often cluttered with details necessary to enforce the model' s policies and constraints. As a result, the code is more prone to error and is more difficult to maintain...

متن کامل

Object-Oriented Modeling of Rule-Based Programming

A domain expertise always comprises a set of concepts and the logical relationships between them. In rule-based programming, rules which describe logical relationships are the fundamental knowledge units, and concepts are embedded in the rules. Objectoriented programming takes the opposite way; objects or classes which are used to describe concepts are the essential knowledge units, and all ope...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996